import {request} from '@/plugins/axios'

//查询前总利润
export function getTotalProfitApi(){
    return request({
        url:`/profit/getTotalProfit`,
        method:'get',
    })
}
// 获取当前用户分到的利润
export function getOneProfitApi(username){
    return request({
        url:`/profit/getOneProfit/${username}`,
        method:'get',
    })
}
//更新利润池
export function updateProfitApi(){
    return request({
        url:'/profit/updateProfit',
        method:'put'
    })
}
